/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package matching;

import org.semanticweb.owl.model.OWLDataProperty;

/**
 *
 * @author livia
 */
public class Restriction {
    public OWLDataProperty atributte;
    public String value;

    public Restriction(OWLDataProperty atributte, String value) {
        this.atributte = atributte;
        this.value = value;
    }

    public OWLDataProperty getAtributte(){
        return  atributte;
    }

    public String getValue(){
        return value;
    }
    
    public boolean equals(Restriction r){
    	return r.atributte.equals(atributte)
    	&& r.value.equals(value);
    }
    
    @Override
    public String toString() {
    	return atributte+" = "+value;
    }
}
